﻿@model VOD.Models.Link

@{
    ViewBag.Title = "Edit";
}

<h1>修改友情链接</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <table>
        <tr>
            <th width="70">
                @Html.LabelFor(model => model.LinkName)
            </th>
            <td width="160">
                @Html.EditorFor(model => model.LinkName)
                @Html.ValidationMessageFor(model => model.LinkName)
            </td>
        </tr>
        <tr>
            <th>
                @Html.LabelFor(model => model.LinkUrl)
            </th>
            <td>
                @Html.EditorFor(model => model.LinkUrl)
                @Html.ValidationMessageFor(model => model.LinkUrl)
            </td>
        </tr>
    </table>
    <p style="margin-top:10px;">
        <input id="btnSave" type="submit" value="保存" />
        @Html.ActionLink("返回列表", "Index", null, new { id="btnBack"})
    </p>
}
<script type="text/javascript">
    $(function () {
        $("#btnSave").button();
        $("#btnBack").button();
    });
</script>